<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-我的主页</title>
    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->
    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-person-account.css"/>
    <script type="text/javascript" src="./js/vue-2.5.16.js"></script>
    <script type="text/javascript" src="./js/axios-0.18.0.min.js"></script>
    <script type="text/javascript" src="./js/host.js"></script>

</head>
<body>
<div class="wrapper">
    <!--引用组件-->
    <!--头部导航-->
    <header>
        <div class="sui-navbar">
            <div class="navbar-inner">
                <a href="index-logined.html" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交"/></a>
                <ul class="sui-nav">
                    <li class="active"><a href="./headline-logined.html">头条</a></li>
                    <li><a href="./qa-logined.html">问答</a></li>
                    <li><a href="./activity-index.html">活动</a></li>
                    <li><a href="./makeFriends-index.html">交友</a></li>
                    <li><a href="./spit-index.html">吐槽</a></li>
                    <li><a href="./recruit-index.html">招聘</a></li>
                </ul>
                <form class="sui-form sui-form pull-left">
                    <input type="text" placeholder="输入关键词..."/>
                    <span class="btn-search fa fa-search"></span>
                </form>
                <div class="sui-nav pull-right info">
                    <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
                    <li class="hover"><span class="fa fa-plus "></span>
                        <ul class="hoverinfo">
                            <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a
                                    href="./headline-submit.html">去分享</a></li>
                            <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html"
                                                                                            target="_blank">提问题</a></li>
                            <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html"
                                                                                    target="_blank">去吐槽</a></li>
                            <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a href="./makeFriends-submit.html"
                                                                                      target="_blank">发约会</a></li>
                        </ul>
                    </li>
                    <li><a href="./person-homepage.html" target="_blank" class="homego"><img
                            src="./img/widget-photo.png" alt="用户头像"/></a></li>
                </div>
            </div>
        </div>
    </header>
</div>
<div v-cloak id="app">
    <div class="myhome-personinfo" style="background-color:#AEDD81">
        <div class="wrapper">
            <div class="person-baseinfo">
                <!--头像信息-->
                <div class="photo">
                    <img src="./img/widget-myphoto.jpg" alt="" class="person"/>
                    <div class="share">
                        <span><img src="./img/asset-QQ.png" alt="" width="34" height="28"/></span>
                        <span><img src="./img/asset-weixin.png" alt="" width="28" height="28"/></span>
                        <span><img src="./img/asset-weibo.png" alt="" width="28" height="28"/></span>
                    </div>
                </div>
                <!--文字信息-->

                <div class="info">
                    <h1>Web爱好者<span class="allinfo"><a href="./person-myfile.html" target="_blank">查看完整档案</a></span>
                    </h1>
                    <ul class="fill">
                        <form action="" class="sui-form form-inline">
                            <li v-if="setcity">
                                <i class="fa fa-map-marker" aria-hidden="true"></i>


                                <span @click="setcity=false" class="edit-item"><span v-if="city">{{ city }}</span><span
                                        v-else>请填写城市</span></span>

                            </li>
                            <li v-else>
                                <i class="fa fa-map-marker" aria-hidden="true"></i>
                                <input type="text" v-model="city"/>
                                <button @click="set_city" class="sui-btn btn-danger save-btn">保存</button>
                            </li>
                        </form>

                        <form action="" class="sui-form form-inline">
                            <li v-if="setschool">
                                <i class="fa fa-map-marker" aria-hidden="true"></i>

                                <span @click="setschool=false" class="edit-item"><span v-if="school">{{ school }}</span><span
                                        v-else>请填写就读学校</span></span>
                            </li>
                            <li v-else>
                                <i class="fa fa-map-marker" aria-hidden="true"></i>
                                <input type="text" v-model="school"/>
                                <button @click="set_school" class="sui-btn btn-danger save-btn">保存</button>
                            </li>
                        </form>

                        <form action="" class="sui-form form-inline">
                            <li v-if="setcompany">
                                <i class="fa fa-shopping-bag" aria-hidden="true"></i>

                                <span @click="setcompany=false" class="edit-item"><span
                                        v-if="company">{{ company }}</span><span v-else>请输入组织或公司</span></span>
                            </li>
                            <li v-else>
                                <i class="fa fa-shopping-bag" aria-hidden="true"></i>
                                <input type="text" v-model="company"/>
                                <button @click="set_company" class="sui-btn btn-danger save-btn">保存</button>

                            </li>
                        </form>

                        <form action="" class="sui-form form-inline">
                            <li v-if="setweb"><i class="fa fa-link" aria-hidden="true"></i>

                                <span @click="setweb=false" class="edit-item"> <span v-if="personal_web">{{ personal_web }}</span><span
                                        v-else>请输入个人网址</span></span>
                            </li>
                            <li v-else>
                                <i class="fa fa-link" aria-hidden="true"></i>
                                <input type="text" v-model="personal_web"/>
                                <button @click="set_web" class="sui-btn btn-danger save-btn">保存</button>

                            </li>
                        </form>
                    </ul>
                </div>
            </div>
            <!--右侧编辑-->
            <form action="">
                <div class="edit-info">
                    <h4 v-if="setprofile">个人简介<span class="addedit"><img @click="setprofile=false"
                                                                         src="./img/widget-edit.png" width="12"
                                                                         height="12"/>编辑</span>

                        <div v-if="profile">
                            <div class="info-box">
                                <div class="edit-intro" style="color: #0f0f0f ">
                                    {{ profile }}
                                </div>
                            </div>
                        </div>

                        <div v-else>
                            <div class="info-box">
                                <div class="edit-intro" style="color: #0f0f0f ">
                                    这个很懒,什么都没留下。
                                </div>

                            </div>

                        </div>
                    </h4>


                    <h4 v-else>个人简介<span class="addedit"><img @click="set_profile" src="./img/widget-edit.png"
                                                              width="12" height="12"/>保存</span>
                        <div class="info-box">
                            <div class="edit-intro">
                                <input type="hidden" 　v-model="profile">
                                <input type='text' style="border:0px;outline:none;cusor:pointer;"
                                       placeholder="这个很懒,什么都没留下。" v-model="profile">

                            </div>
                        </div>
                    </h4>

                </div>
            </form>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
<!--两列布局-->
<div id="app1">
    <div class="wrapper  myhome">
        <div class="left-list">
            <div class="myhome-list">
                <ul class="home-list">
                    <li><a href="./person-homepage.html">我的主页</a></li>
                    <li><a href="./person-myanswer.html">我的回答</a></li>
                    <li><a href="./person-myquestion.html">我的提问</a></li>
                    <li><a href="./person-myshare.html">我的分享</a></li>
                </ul>
                <ul class="home-list bottom">
                    <li><a href="./person-dynamic.html">个人动态</a></li>
                    <li><a href="./person-myfocus.html">我的关注</a></li>
                    <li><a href="./person-mycollect.html">我的收藏</a></li>
                    <li><a href="./person-myreaded.html">浏览记录</a></li>
                    <li class="active"><a href="./person-account.html">账户设置</a></li>
                </ul>
            </div>
        </div>
        <div class="right-content">
            <div class="home-content">

                <div class="activities account-type">
                    <h4 class="tit"><span>账户设置</span></h4>
                    <div class="account-main">


                        <div class="account-person">
                            <h3>个人账号</h3>
                            <ul class="account-info">
                                <li v-if="set_name" ><span class="gray index">名字</span>

                                    <span v-if="real_name"> <span class="info">{{real_name}}</span> </span>

                                    <span v-else><span class="info">请填写真实姓名</span></span>

                                    <!--<span v-show="name_message_info" style="margin-left: 20px;color: red">名字修改成功</span>-->




                                    <span v-show="name_message" style="color: red;margin-left: 20px"> {{name_message}}</span>

                                    <span @click="set_name=false" class="gray edit">
                                        <i class="fa fa-pencil" aria-hidden="true"></i> 编辑
                                    </span>

                                </li>
                                <li v-else>

                                    <form action=""  name="" style="display: block">
                                         <span class="gray index">名字</span>
                                        <input type="text" placeholder="输入姓名" v-model="real_name" @blur="check_name()" />

                                        <input type="button" @click="setname()" class="sui-btn btn-danger save-btn" value="保存">
                                        <span v-show="name_message_info" style="color: red"> {{name_message_info}}</span>

                                    </form>

                                </li>


                                <li v-if="set_web"><span class="gray index">个性网址</span>
                                    <span v-if="personal_web"> <span class="info">{{personal_web}}</span></span>
                                    <span v-else><span class="info">请填写个人网址</span></span>


                                    <span @click="set_web=false" class="gray edit"><i class="fa fa-pencil"
                                                                                      aria-hidden="true"></i> 编辑</span>
                                </li>
                                <li v-else>

                                    <form action=""  name="" style="display: block">
                                        <span class="gray index">个性网址</span>
                                        <input type="text" placeholder="输入网址" v-model="personal_web"/>
                                        <input @click="setweb()" class="sui-btn btn-danger save-btn" style="width: 54px;height: 24px" value="保存" >
                                    </form>
                                </li>


                                <li v-if="set_email">
                                    <span class="gray index">Email </span>
                                    <span v-if="email"><span class="info">{{email}}</span></span>
                                    <span v-else><span class="info">请填写个人邮箱</span></span>
                                    <span @click="set_email=false" class="gray edit"><i class="fa fa-pencil"
                                                                                        aria-hidden="true"></i> 编辑</span>
                                </li>


                                <li v-else>
                                    <form action=""  name="" style="display: block">
                                        <span class="gray index">Email </span>
                                        <input type="email" placeholder="输入邮箱" v-model="email"/>
                                        <span v-show="email_error" style="color: red">邮箱格式有问题</span>
                                        <input type="button" @click="setemail()" class="sui-btn btn-danger save-btn" value="保存">
                                    </form>
                                </li>


                                <li v-if="set_mobile">
                                    <span class="gray index">手机号码 </span> <span class="info">{{mobile}}</span>
                                    <span @click="setmobile=false" class="gray edit"><i class="fa fa-pencil"
                                                                                        aria-hidden="true"></i> 编辑</span>
                                </li>
                                <li v-else>
                                    <form action="" class="sui-form form-inline" style="display: block" name="">
                                        <span class="gray index">手机号码 </span>
                                        <input type="phone" placeholder="输入手机号码" v-model="mobile"
                                               @blur="check_mobile()"/>
                                        <input type="button" @click="setmobile()" class="sui-btn btn-danger save-btn" value="保存">
                                    </form>
                                </li>



                                <div>
                                <li v-if="set_password" >
                                    <span class="gray index">密码 </span>
                                    <span @click="set_password=false" class="info" >点击修改密码

                                    </span>
                                    <span v-show="pwd_message" style="color: red;margin-left: 20px" >密码修改成功</span>
                                </li>
                                <li v-else>
                                    <span class="gray index">密码 </span>
                                    <form action="" class="sui-form form-inline" style="display: block">
                                        <input type="password" placeholder="输入新的密码" v-model="password"
                                               @blur="check_pwd()"/>
                                        <input type="button" @click="setpassword()" class="sui-btn btn-danger save-btn" value="保存">
                                    </form>
                                </li>
                                </div>

                            </ul>
                        </div>






                        <div class="account-other">
                            <h3>第三方账号</h3>
                            <ul class="account-info">
                                <li><span class="gray index"><img src="./img/widget-weixin.png" width="20"/> 微信</span>
                                    <span v-if="allow1 && display1">
                                        <span v-if="weixin1">
                                        <span class="name" >已绑定，解绑</span>
                                        </span>
                                        <span v-else>
                                            <!--返回数据成功就把weixin1设为false-->
                                        <span >{{ weixin}}</span>
                                        </span>
                                        <span class="gray check" @click="weixin1=false"><i class="fa fa-square-o" aria-hidden="true"></i> 公开显示</span>
<!--weixin()查微信号-->
                                    </span>

                                    <span v-else-if="display1==false"> <span class="name bind" @click="display1=true;allow1=false" >绑定账号</span></span>
                                    <!--点击绑定,绑定账号消失-->
                                    <!--<span v-show="display1"><input type="text" v-model="weixin" placeholder="请输入微信账号">-->


                                    </span>
                                    <span v-else>
                                        <input type="text" placeholder="填写微信号" v-model="weixin" name="">
                                        <input type="button" @click="set_weixin();" class="sui-btn btn-danger save-btn" value="保存"></span>
                                    <!--<span v-else> <span class="name bind" @click="allow1=true">绑定账号</span></span>-->
                                    <!--若是allow为假显示上面-->
                                    <!--点击 公开显示，显示用户的微信号（只有已绑定才会有显示） todo 绑定账号暂时不实现和解绑暂时不实现-->
                                </li>




                                 <li><span class="gray index"><img src="./img/widget-QQ.png" width="20"/> QQ</span>
                                    <span v-if="allow2">
                                        <span v-if="qq1">
                                        <span class="name" >已绑定，解绑</span>
                                        </span>
                                        <span v-else>
                                            <!--返回数据成功就把qq1设为false-->
                                        <span >{{ qq}}</span>
                                        </span>
                                        <span class="gray check" @click="qq1=false"><i class="fa fa-square-o" aria-hidden="true"></i> 公开显示</span>
<!--weixin()查微信号-->
                                    </span>
                                    <span v-else> <span class="name bind" @click="allow2=true">绑定账号</span></span>
                                    <!--若是allow为假显示上面-->
                                    <!--点击 公开显示，显示用户的微信号（只有已绑定才会有显示） todo 绑定账号暂时不实现和解绑暂时不实现-->
                                </li>



                                 <li><span class="gray index"><img src="./img/widget-weibo.png" width="20"/> 新浪微博</span>
                                    <span v-if="allow3">
                                        <span v-if="weibo1">
                                        <span class="name" >已绑定，解绑</span>
                                        </span>
                                        <span v-else>
                                            <!--返回数据成功就把weibo1设为false-->
                                        <span >{{ weibo}}</span>
                                        </span>
                                        <span class="gray check" @click="weibo1=false"><i class="fa fa-square-o" aria-hidden="true"></i> 公开显示</span>

                                    </span>
                                    <span v-else> <span class="name bind" @click="allow3=true">绑定账号</span></span>
                                    <!--若是allow为假显示上面-->
                                    <!--点击 公开显示，显示用户的微信号（只有已绑定才会有显示） todo 绑定账号暂时不实现和解绑暂时不实现-->
                                </li>



                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<div class="footer">
    <div class="wrapper">
        <div class="footer-bottom">
            <div class="link">
                <dl>
                    <dt>
                        网站相关
                    </dt>
                    <dd>
                        关于我们
                    </dd>
                    <dd>
                        服务条款
                    </dd>
                    <dd>
                        帮助中心
                    </dd>
                    <dd>
                        编辑器语法
                    </dd>
                </dl>
                <dl>
                    <dt>
                        常用链接
                    </dt>
                    <dd>
                        传智播客
                    </dd>
                    <dd>
                        传智论坛
                    </dd>
                </dl>
                <dl>
                    <dt>
                        联系我们
                    </dt>
                    <dd>
                        联系我们
                    </dd>
                    <dd>
                        加入我们
                    </dd>
                    <dd>
                        建议反馈
                    </dd>
                </dl>
                <dl>
                    <dt>
                        关注我们
                    </dt>
                    <dd>
                        微博
                    </dd>
                    <dd>
                        twitter
                    </dd>
                </dl>
                <div class="xuke">
                    <h3>内容许可</h3>
                    <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
                    <p>本站由 传智研究院 提供更新服务</p>
                </div>
            </div>
            <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p>
        </div>
    </div>
</div>
<script>
</script>
</body>
<script type="text/javascript" src="./js/base_info.js"></script>
<script type="text/javascript" src="./js/person-account.js"></script>
</html>